
// 数字枚举
enum Week {
    Monday = 1,
    Tuesday,
    Wednesday,
    Thursday,
    Friday,
    Saturday,
    Sunday
}

console.log(Week.Monday);
console.log(Week["Monday"]);

console.log(Week[1]);
console.log(Week[5]);


// 字符串枚举
enum WeekEnd {
    Monday = "MyMonday",
    TuseDay = "MyTuesday",
    Wednsday = "Wednesday",
    Thursday = "Thursday",
    Friday = "Friday",
    Saturday = "Saturday",
    Sunday = "Sunday",
}

console.log(WeekEnd.Monday);
console.log(WeekEnd["Monday"]);





export {}



